package cate.common.table.activity.treasure.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteField;

public class TreasureBaseRow extends ERow {

    @NoteField("配置ID")
    public int configId;

    @NoteField("抽卡次数下限")
    public int callMin;

    @NoteField("抽卡次数上限")
    public int callMax;

    @NoteField("奖池分组")
    public int groupId;

    @Override
    public void parse(XSSFRowWrap xrw) {
        this.id = xrw.getInteger("ID");
        this.configId = xrw.getInteger("配置ID");
        this.callMin = xrw.getInteger("抽卡次数下限",0);
        this.callMax = xrw.getInteger("抽卡次数上限");
        this.groupId = xrw.getInteger("奖池分组",1);
    }
}
